cmake_minimum_required(VERSION 2.8.12)
project(ocean_vagsdk)

set(CMAKE_CXX_STANDARD 11)
add_definitions(-std=c++11)

if (NOT DEFINED JNI_INCLUDE_PATH)
    set(JNI_INCLUDE_PATH "C:\\Program Files\\Java\\jdk-1.8\\include")
endif ()

if (NOT DEFINED JNI_INCLUDE_PATH2)
    set(JNI_INCLUDE_PATH2 "${JNI_INCLUDE_PATH}/win32")
endif ()

if (NOT DEFINED MINGW_INCLUDE)
    set(MINGW_INCLUDE "D:\\x86_64-8.1.0-release-posix-seh-rt_v6-rev0\\mingw64\\x86_64-w64-mingw32\\include")
endif ()

include_directories(${JNI_INCLUDE_PATH} ${JNI_INCLUDE_PATH2} ${MINGW_INCLUDE})

add_library(ocean_vagsdk SHARED main.cpp com_arcvideo_ocean_vag_jni_VagApi.h errno_sdk.h
        dauproxyapi.h dauproxyapi.cpp vagsdk_util.h vagsdk_util.cpp jni_util.h jni_util.cpp logger.h logger.cpp)
target_link_libraries(ocean_vagsdk dl pthread)

